<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <link rel="stylesheet" type="text/css" href="../css/api.css"/>
    <style>
    	*{
    		margin:0px;
    		padding:0px;
    	}
    	body,#container{
    		height:100%;
    		width:100%;
    	}
    	#container li{
    		height: 100px;
    		width: 100%;
    		border-bottom: 1px solid black;	
    		clear:both;
    		list-style:none;
    		margin-bottom:3px;
    	}
    	.info{
    		width: 200px;
    		float: left;
    		height: 100px;
    	}
    	.info img{
    		width: 7.7em;
    	}
    	a{
    		color: black;
    		text-decoration: none;
    	}
    </style>
</head>
<body>
	<div id="container">
		<ul>
			<li onclick="openNew()">
				<div class="info">
					<img src="../image/logo.png" />
				</div>
				<div>
					<p>秀江南武进店装潢</p>
					<p>设计师-董龙文</p>
				</div>
			</li>
			<li>
				<div class="info">
					<img src="../image/logo.png" />
				</div>
				<div>
					<p>秀江南武进店装潢</p>
					<p>设计师-董龙文</p>
				</div>
			</li>
			<li>
				<div class="info">
					<img src="../image/logo.png" />
				</div>
				<div>
					<p>秀江南武进店装潢</p>
					<p>设计师-董龙文</p>
				</div>
			</li>
			<li>
				<div class="info">
					<img src="../image/logo.png" />
				</div>
				<div>
					<p>秀江南武进店装潢</p>
					<p>设计师-董龙文</p>
				</div>
			</li>
			<li>
				<div class="info">
					<img src="../image/logo.png" />
				</div>
				<div>
					<p>秀江南武进店装潢</p>
					<p>设计师-董龙文</p>
				</div>
			</li>
			<li>
				<div class="info">
					<img src="../image/logo.png" />
				</div>
				<div>
					<p>秀江南武进店装潢</p>
					<p>设计师-董龙文</p>
				</div>
			</li>
			<li>
				<div class="info">
					<img src="../image/logo.png" />
				</div>
				<div>
					<p>秀江南武进店装潢</p>
					<p>设计师-董龙文</p>
				</div>
			</li>
			<li>
				<div class="info">
					<img src="../image/logo.png" />
				</div>
				<div>
					<p>秀江南武进店装潢</p>
					<p>设计师-董龙文</p>
				</div>
			</li>
		</ul>
	</div>
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript">

	apiready = function(){
		api.setRefreshHeaderInfo({
			visible:true,
			bgColor:'#ccc',
			textDown:'获取新数据...',
			textUp:'获取中...',
			showTime:true
        },function(ret,err){
        	
        	//从服务器加载数据，完成后调用api.refreshHeaderLoadDone()方法恢复组件到默认状态
        	
        	var model = api.require('model');
        	var query = api.require('query');
        	model.config({
        		appId:'A6983028685064',
			    appKey: '82F479F5-3EE1-DB3B-ECCF-B10EBBA37BF3',
			    host: 'https://d.apicloud.com/'
			});
			query.createQuery({
            },function(ret,err){
            	if(ret && ret.qid){
            		model.findAll({
	                    class:'info',
	                    qid:ret.qid
                    },function(ret,err){
                    	alert(ret[1].username + ' : ' + ret[1].remarks);
                    });
            	}
            });
        	api.refreshHeaderLoadDone();
        });   
       
    };
    
     function openNew(){
    	api.openWin({
            name: 'subpage',
            url: '1.html'
        });
    } 

   
    
</script>
</html>